package main;
public class RandNum {
    public static int randNum(int one, int two) {
        int add = 1;
        int mod = one;

        if (one > two) {
            add = -1;
            mod = two;
        }
        return (int)(Math.random()*(Math.abs(one-two-add)))+mod;
    }//generates a random number between the two inputted integers
}